# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
# Contributor: linuxSEAT <--put_my_name_here--@gmail.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: froggie <sullivanva@gmail.com>
# Contributor: ryooichi <ryooichi+aur@gmail.com>

pkgname=ssdeep
pkgver=2.14.1
pkgrel=3
pkgdesc="A program for computing context triggered piecewise hashes"
arch=('loong64' 'x86_64')
url="https://ssdeep-project.github.io/ssdeep/"
license=('GPL')
depends=('gcc-libs')
options=('!libtool' 'debug')
source=(https://github.com/ssdeep-project/ssdeep/releases/download/release-$pkgver/ssdeep-$pkgver.tar.gz)
sha256sums=('ff2eabc78106f009b4fb2def2d76fb0ca9e12acf624cbbfad9b3eb390d931313')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
